<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			var arr = ["关羽","张飞","刘备"];
			var arr2 = [1,2,3]
			console.log(arr);
			
			var aaa = arr.push("abc");
			var aaa = arr.push("abc","def");
			var aaa = arr.push(arr2);
			console.log(aaa);
			console.log(arr);
			
			aaa = arr.pop();
			console.log(aaa);
			console.log(arr);
			
			aaa = arr.unshift("abc");
			console.log(aaa);
			console.log(arr);
			
			aaa = arr.shift();
			console.log(aaa);
			console.log(arr);
		</script>
	</body>
</html>
